package com.yuelife.user.pojo;

import com.yuelife.user.entity.Village;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:User构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "User",value = "User")
@Table(name="user")
public class User implements Serializable{

	@ApiModelProperty(value = "自增长用户id",required = false)
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Integer id;//自增长用户id

	@ApiModelProperty(value = "真实姓名",required = false)
    @Column(name = "name")
	private String name;//真实姓名

	@ApiModelProperty(value = "电话号码",required = false)
    @Column(name = "telephone")
	private String telephone;//电话号码

	@ApiModelProperty(value = "密码",required = false)
    @Column(name = "password")
	private String password;//密码

	@ApiModelProperty(value = "小区",required = false)
    @Column(name = "community")
	private String community;//小区

	@ApiModelProperty(value = "门牌号",required = false)
    @Column(name = "house_number")
	private String houseNumber;//门牌号

	@ApiModelProperty(value = "头像",required = false)
    @Column(name = "head_img")
	private String headImg;//头像

	@ApiModelProperty(value = "性别",required = false)
    @Column(name = "sex")
	private String sex;//性别

	@ApiModelProperty(value = "是否认证",required = false)
    @Column(name = "is_attestation")
	private Integer isAttestation;//是否认证

	@ApiModelProperty(value = "户主主键",required = false)
    @Column(name = "home_id")
	private Integer homeId;//户主主键

	@ApiModelProperty(value = "小区id;小区表会有经纬度",required = false)
    @Column(name = "village_id")
	private Integer villageId;//小区id;小区表会有经纬度

	@ApiModelProperty(value = "是否激活",required = false)
    @Column(name = "noteStatus")
	private String noteStatus;//是否激活

	@ApiModelProperty(value = "手机验证码",required = false)
    @Column(name = "code")
	private String code;//手机验证码

	@ApiModelProperty(value = "创建时间",required = false)
    @Column(name = "createtime")
	private Date createtime;//创建时间

	@ApiModelProperty(value = "小区信息",required = false)
	private Village village;
	@ApiModelProperty(value = "认证了的房子信息",required = false)
	private Home home;


	public Home getHome() {
		return home;
	}

	public void setHome(Home home) {
		this.home = home;
	}

	//get方法
	public Integer getId() {
		return id;
	}

	//set方法
	public void setId(Integer id) {
		this.id = id;
	}
	//get方法
	public String getName() {
		return name;
	}

	//set方法
	public void setName(String name) {
		this.name = name;
	}
	//get方法
	public String getTelephone() {
		return telephone;
	}

	//set方法
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	//get方法
	public String getPassword() {
		return password;
	}

	//set方法
	public void setPassword(String password) {
		this.password = password;
	}
	//get方法
	public String getCommunity() {
		return community;
	}

	//set方法
	public void setCommunity(String community) {
		this.community = community;
	}
	//get方法
	public String getHouseNumber() {
		return houseNumber;
	}

	//set方法
	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}
	//get方法
	public String getHeadImg() {
		return headImg;
	}

	//set方法
	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
	//get方法
	public String getSex() {
		return sex;
	}

	//set方法
	public void setSex(String sex) {
		this.sex = sex;
	}
	//get方法
	public Integer getIsAttestation() {
		return isAttestation;
	}

	//set方法
	public void setIsAttestation(Integer isAttestation) {
		this.isAttestation = isAttestation;
	}
	//get方法
	public Integer getHomeId() {
		return homeId;
	}

	//set方法
	public void setHomeId(Integer homeId) {
		this.homeId = homeId;
	}
	//get方法
	public Integer getVillageId() {
		return villageId;
	}

	//set方法
	public void setVillageId(Integer villageId) {
		this.villageId = villageId;
	}
	//get方法
	public String getNoteStatus() {
		return noteStatus;
	}

	//set方法
	public void setNoteStatus(String noteStatus) {
		this.noteStatus = noteStatus;
	}
	//get方法
	public String getCode() {
		return code;
	}

	//set方法
	public void setCode(String code) {
		this.code = code;
	}
	//get方法
	public Date getCreatetime() {
		return createtime;
	}

	//set方法
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}


	public Village getVillage() {
		return village;
	}

	public void setVillage(Village village) {
		this.village = village;
	}
}
